package wci.intermediate.symtabimpl;

import wci.intermediate.Definition;

/**
 * <h1>DefinitionImpl</h1>
 * <p>各式各样的定义枚举值</p>
 * <p>Copyright (c) 2009 by Ronald Mak</p>
 * <p>For instructional purposes only.  No warranties.</p>
 */
public enum DefinitionImpl implements Definition
{
    CONSTANT("常量")/*常量*/, ENUMERATION_CONSTANT("枚举常量"),
    TYPE("类型"), VARIABLE("变量"), FIELD("记录域"),
    VALUE_PARM("值参"), VAR_PARM("变参"),
    PROGRAM_PARM("程序参数"),
    PROGRAM("主程序"), PROCEDURE("过程"), FUNCTION("函数"),
    UNDEFINED("未定义");

    private String text;

    DefinitionImpl()
    {
        this.text = this.toString().toLowerCase();
    }

    DefinitionImpl(String text)
    {
        this.text = text;
    }

    public String getText()
    {
        return text;
    }
}
